/**
分栏布局
可传参2，3，4
@eg <el-form v-debounce="3" />
使用指令后，会在对象元素添加class如：'column-wrapper column-3'，相关样式添加在'styles/index.scss'
 */
export default {
  mounted(el: any, binding: any) {
    setColumns(el, binding)
  },
}
function setColumns(el: any, binding: any) {
  el.classList.add('column-wrapper')
  if (binding.value) el.classList.add(`column-${binding.value}`)
}